package com.biz.primus.model.depot.exception;

import com.biz.primus.base.exception.ExceptionType;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * DepotException
 *
 * @author jia JKLiues
 * @date 2017年09月20日
 * @reviewer
 * @see
 */
@Getter
@AllArgsConstructor
public enum DepotException implements ExceptionType {

    DEPOT_NOT_EXIT(7500, "门店不存在"),
    DEPOT_BUSINESS_TIME_ERROR(7501, "门店营业时间错误"),
    DEPOT_CODE_IS_NULL(7502, "门店编码不能为空"),
    GEO_IS_NULL(7503, "区域ID不能为空"),
    DEPOT_PRICE_IS_NULL(7504, "门店起送价不能为空"),
    DEPOT_PROMOTION_PRICE_IS_NULL(7505, "门店活动价不能为空"),
    DEPOT_PROMOTION_DATE_IS_NULL(7506, "门店活动价时间不能为空"),
    DEPOT_PROMOTION_DATE_IS_WRONG(7507, "门店活动价时间错误"),
    DEPOT_NAME_IS_NULL(7508, "门店名称不能为空"),
    DEPOT_ADDRESS_IS_NULL(7509, "门店地址不能为空"),
    DEPOT_TYPE_IS_NULL(7510, "门店类型能为空"),
    DEPOT_LAT_OR_LON_IS_NULL(7511, "门店经纬度不能为空"),
    EMP_IS_NULL(7512, "门店员工信息不能为空"),
    EMP_NOT_EXIST(7513, "门店员工不存在"),
    EMP_CODE_IS_NULL(7514, "员工编号不能为空"),
    EMP_NAME_IS_NULL(7515, "员工姓名不能为空"),
    EMP_MOBILE_IS_NULL(7516, "员工手机号不能为空"),
    EMP_IDENTITY_IS_NULL(7517, "员工身份不能为空"),
    EMP_ID_IS_NULL(7516, "员工ID不能为空"),
    DEPOT_ID_IS_NULL(7517, "门店ID不能为空"),
    DEPOT_DELIVER_PRICE_IS_NULL(7518, "门店起送价配置为空"),
    EMP_NOT_IN_STATUS(7519, "员工已离职"),
    FREIGHT_ID_IS_NULL(7520, "运费模板ID不存在"),
    FREIGHT_NOT_EXISTS(7521, "运费模板不存在"),
    FREIGHT_CODE_IS_EXIST(7522, "运费模板编号已存在"),
    QR_CODE_NOT_EXISTS(7523, "二维码不存在"),
    EMP_TICKET_GENERAL_FAILED(7524, "员工二维码生成失败");
    private int code;
    private String description;
}